package org.beetl.json.util;

import java.lang.reflect.Method;

public class MethodInvoker {
	Class c;
	String name;
	Method m = null;
	public MethodInvoker(Method m){
		this.m = m;
		m.setAccessible(true);
		
	}
	
	public Object invoke(Object ins){
		try{
			return m.invoke(ins, new Object[0]);
		}catch(Exception ex){
			throw new RuntimeException(ex);
		}
		
	}
}
